<?php
	
	require_once('zip.lib.php');	
	function unZip($src,$dest)
	{
		if (!is_dir($dest))
		{
			mkdir($dest,0777);
		}
		if (file_exists($src))
		{			
			$zip = new Zip();
			$list = $zip->get_list($src);
			$zip->Extract($src,$dest,-1);			
			echo 'OK!解压成功!<br /><font color="red">'.realpath($src).' </font>被解压解压到<font color="red"> '.realpath($dest).'</font> 目录下<br />';
			print_r($list);
		}
		else
		{
			echo realpath($src).'==》文件不存在！';
		}
	}
	//function showTree($array)
	unZip('./myadmin211.zip','./myadmin211/');

?>